<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
  </head>
  <body>
    <!--1 模板内容 -->
    <div id="demo">
      <div v-bind:title="message">DOM元素的属性绑定</div>
      <div :title="msg">DOM元素的属性绑定</div>
    </div>

    <!--2 js -->
    <script>
      var demo = new Vue({
        el: "#demo",
        data: {
          message: "aaa",
          message1: "this is <i>v-text</i>",
          msg: "bbb"
        }
      });
    </script>
  </body>
</html>
